<?php
if($conversations!=NULL){
foreach ($conversations as $row) {
    echo "<div class='conversation_div' onclick='javascript:getConversation({$row->fake},{$row->user})' id='div_".$row->fake.$row->user."'>
                        <input type='hidden' name='conversation[{$row->fake}]' id='conversation_fake' value='{$row->fake}'/>
                        <input type='hidden' name='conversation[{$row->user}]' id='conversation_user' value='{$row->user}'/>";
                      echo "<input type='hidden' id='usernameFrom_{$row->user}'  value='{$row->username_user}'/>";
                      echo "<input type='hidden' id='usernameTo_{$row->fake}'  value='{$row->username_fake}'/>";
   
   if ($row->image_name_fake != NULL)
        $image = "<img src='" . base_url() . "profile/image/thumb/{$row->fake}/{$row->image_name_fake}' alt='{$row->username_fake}'>";
    else
        $image = "<img src='" . base_url() . "img/no_photo.gif' alt=''>";
    echo $image;
    if ($row->image_name_user != NULL)
        $image = "<img  src='" . base_url() . "profile/image/thumb/{$row->user}/{$row->image_name_user}' alt='{$row->username_user}'>";
    else
        $image = "<img  src='" . base_url() . "img/no_photo.gif' alt=''>";
    echo $image;
    echo "<p style='float: left;'> 
                        {$row->username_fake}
                       </p>";
     echo "<p style='float: left;'> 
                        {$row->username_user}
                       </p>";
    echo        " </div>";
}
}
?>
